<script type="text/javascript">
    var state={$row.state};
    var lat = {$row.newhousebuilding.latitude==null?0:$row.newhousebuilding.latitude};
    var lng = {$row.newhousebuilding.longitude==null?0:$row.newhousebuilding.longitude};
    var building='{$row.newhousebuilding.building_name}';
    var item_id={$row.id};
</script>
<style>
    .text{color: blue;}
</style>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak={:config('site.configgroup')['baidu_ak']}"></script>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="container">
        <div class="row">
            <div class="col col-xs-8">
                <table class="table table-border">
                    <tr>
                        <th style="width:60px">小区</th>
                        <td>
                            {$row.newhousebuilding.building_name} <span class="text">{$row.dong}#{$row.shi}</span>
                        </td>
                        <th>
                            编号
                        </th>
                        <td>
                           <span class="text"> {$row.id}</span> <span  id="tdState" ></span>
                        </td>
                    </tr>
                    <tr>
                        <th>地址</th><td colspan="3" id="c-address">[{$row.newhousebuilding.areaName}] {$row.address}</td>
                    </tr>
                    <tr>
                        <th>装修</th><td>{$row.seconddecoration.decoration}</td>
                        <th style="width:60px">户型</th><td><span class="text">{$row.shi_count}</span>室 / <span class="text">{$row.ting_count}</span>厅</td>
                    </tr>
                    <tr>
                        <th>面积</th><td><span class="text">{$row.area}</span> 平方</td>
                        <th>单价</th><td><span class="text">{$row.unit_price}</span> 元/平</td>
                    </tr>
                    <tr>
                        <th>总价</th><td><span class="text">{$row.total_price}</span> 万元</td>
                        <th>房主</th><td>{$row.customer_name} <span class="text">{$row.mobile}</span></td>
                    </tr>
                    <tr style='{in name="$row.is_auction" value="0"}display:none{/in}'>
                        <th style="color:red">法拍房</th><td>标的金额 <span class="text">{$row.auction_price}</span> 万元</td>
                        <th>开拍</th><td><span class="text">{$row.auction_time_start}</span> 至 <span class="text">{$row.auction_time_end}</span></td>
                    </tr>
                    <tr style='{in name="$row.is_auction" value="0"}display:none{/in}'>
                        <th>二维码</th><td colspan="3">
                            <img src="/addons/qrcode/index/build?text={$row.auction_url}" style="width:150px;height:150px" />    
                        </td>
                    </tr>
                    <tr>
                        <th>录入人</th><td><span class="text">{$creatorName}</span> </td>
                        <th>公司</th><td><span class="text">{$copName}</span> </td>
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td colspan="3">{$row.mem}</td>
                    </tr>

                </table>

            </div>
            <div class="col col-xs-4">
                <div class="panel panel-default">
                    <div class="panel-heading">位置</div>
                    <div class="panel-body" style="height:250px">
                        <div id="map-container" style="height:100%;width:100%"></div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">跟进</div>
                    <div class="panel-body" style="height:200px" id="ulFollow">
                      
                    </div>
                </div>
                  

                
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-right">
                <button type="button" class="btn btn-success btn-embossed" id="btnNewFollow">跟进</button>
        </div>
    </div> 
</form>